/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package be.ac.ua.pats.thesisrobotica.robot.main;


import lejos.nxt.ColorLightSensor;
import lejos.nxt.SensorPort;
import lejos.nxt.SensorPortListener;
import lejos.nxt.comm.RConsole;

/**
 *
 * @author Admin
 */
public class FieldsTest {

    public static void main(String[] args) {
         RConsole.openUSB(20000);

         SensorPort.S1.addSensorPortListener(new SensorPortListener() {;

         ColorLightSensor cs = new ColorLightSensor(SensorPort.S1,SensorPort.TYPE_COLORFULL);
            public void stateChanged(SensorPort sp, int i, int i1) {
                cs.readColor().toString();
            }

         });
         while(true){
         }




    }
}
